package com.lqzs.businessmanager.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "merchant_table")
class MerChantInfo() {
    @PrimaryKey(autoGenerate = true)
    var uid =0 //主键自增长ID
    @ColumnInfo(name = "mc_userName")
    var userName:String?="" //用户名称
    @ColumnInfo(name = "mc_fraction")
    var fraction:String?="" //分数满意度 包含味道和包装 有则上传  没有则不上传
    @ColumnInfo(name = "mc_chaseComments")
    var chaseComments:String?="" //用户评价 有则上传 没有则不上传
    @ColumnInfo(name = "mc_chaseComments_time")
    var chaseCommentsTime:String?="" //用户评价时间
    @ColumnInfo(name = "mc_reviewFollow")
    var reviewFollow:String?="" //用户追评 有则上传 没有则不上传
    @ColumnInfo(name = "mc_orderDetails")
    var orderDetails:String?="" //订单详情
    @ColumnInfo(name = "mc_orderRecommend")
    var orderRecommend:String?="" //顾客推荐
    @ColumnInfo(name = "mc_merchantReplied")
    var merchantReplied:String?="" //商家回复
    @ColumnInfo(name = "mc_reviewId")
    var reviewId:String?=null //评论ID
    @ColumnInfo(name = "mc_upload")
    var upload = 0//是否上传后台0未上传，1上传,4需要更新

    override fun toString(): String {
        return "MerChantInfo(userName=$userName," +
                "fraction='$fraction', " +
                "chaseComments='$chaseComments'," +
                "chaseCommentsTime='$chaseCommentsTime'," +
                "reviewFollow='$reviewFollow'," +
                "orderDetails='$orderDetails',  " +
                "orderRecommend='$orderRecommend',  " +
                "merchantReplied='$merchantReplied')"
    }

}